package com.techstar.api.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.techstar.api.service.city.DistrictCongestTrendService;

@Service
public class TrafficFactory {
	@Autowired
	private DistrictCongestTrendService districtCongestTrendService;
	
	@Scheduled(fixedDelay = 5 * 60 * 1000)
	public void cityFifthService() {
		districtCongestTrendService.query();
	}
}
